<?php $this->load->view('layout/header');?>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <h3 class="page-title">网站设置 <small>所有网站设置</small></h3>
                <?php echo breadcrumb(array('网站设置', 'advert/grid'=>'广告管理', '添加广告')); ?>
            </div>
        </div>
        <?php echo execute_alert_message() ?>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box green">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-plus-sign"></i>添加广告</div>
                        <div class="tools">
                            <a class="collapse" href="javascript:;"></a>
                            <a class="remove" href="javascript:;"></a>
                        </div>
                    </div>
                    <div class="portlet-body form">
                        <form class="form-horizontal line-form" action="<?php echo base_url('expressrecord/sendPost') ?>" method="post" enctype="multipart/form-data">
                            <div class="control-group">
                                <label class="control-label"><em>* </em>快递</label>
                                <div class="controls">
                                    <select name="company" class="medium m-wrap required valid">
                                        <option value="">请选择</option>
                                        <?php foreach($express->result() as $value): ?>
                                            <option value="<?php echo $value->company ?>" ><?php echo $value->name ?></option>
                                        <?php endforeach ?>
                                    </select>
                                </div>
                            </div>
                            <div class="control-group">
                                <label class="control-label"><em>* </em>快递单号</label>
                                <div class="controls">
                                    <input type="text" class="m-wrap large required" name="number" />
                                </div>
                            </div>
<!--                            <div class="control-group">-->
<!--                                <label class="control-label"><em>* </em>发货地</label>-->
<!--                                <div class="controls">-->
<!--                                    <input type="text" class="m-wrap large required" name="form" />-->
<!--                                </div>-->
<!--                            </div>-->
<!--                            <div class="control-group">-->
<!--                                <label class="control-label"><em>* </em>收货地</label>-->
<!--                                <div class="controls">-->
<!--                                    <input type="text" class="m-wrap large required" name="to" />-->
<!--                                </div>-->
<!--                            </div>-->
                            <div class="form-actions">
                                <button class="btn green" type="submit"><i class="icon-ok"></i> 推送</button>
                                <a href="<?php echo base_url('expressrecord/index') ?>">
                                    <button class="btn" type="button">返回</button>
                                </a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $this->load->view('layout/footer');?>